<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" href="/assets/manage.css" type="text/css" />
<title>一括プッシュ送信</title>
</head>
<body>
	
<h2>一括プッシュ送信</h2>
<? if(isset($message)) {?><?= $message; ?><? } ?>
<? if(isset($error)) {?><font color='red'><?= $error; ?></font><? } ?>
<form method='post' action='./'>
	テキスト<input type='text' name="text" size='30' maxlength='80'><input type="submit" value="キューに追加"><br />
	※最大240バイト 全角文字は3バイト<br />
</form>
<a href="/batch/push/bulk/">手動送信</a>

<? if(count($list) > 0) { ?>
<hr>
送信キュー
<table>
<tr>
<? foreach($list[0] as $idx => $value) { ?>
	<td><?= $idx; ?></td>
<? } ?>	
</tr>	
<? foreach($list as $row => $col) { ?>
<tr>
<? foreach($col as $idx => $value) { ?>
<td><?= $value; ?></td>
<? } ?>	
<td><a href="?del=<?= $col['push_id']; ?>">取り消す</a></td>
<td><a href="?ok=<?= $col['push_id']; ?>">復活</a></td>
</tr>	
<? } ?>	
</table>
<? } ?>	
</body>
</html>
